load(key).

discretize(entropy).
use_package(hypspc).
minimal_cases(2).                      %  Número de ejemplos cubiertos por cada hoja como mínimo
accuracy(0.80).
random_test_set(0.1).

classes([pos,neg]).
predict(guilty(+person,-clss)).

rmode(1: necessary_for_harm(+Person, #)).
rmode(1: necessary_for_harm(+Person, -Bool)).

rmode(1: mental_state(+Person, #)).
rmode(1: mental_state(+Person, -MentalState)).

rmode(1: external_force(+Person, #)).
rmode(1: external_force(+Person, -Bool)).

rmode(1: foreseeability(+Person, #)).
rmode(1: foreseeability(+Person, -Level)).

rmode(1: intervening_contribution(+Person, #)).
rmode(1: intervening_contribution(+Person, -Bool)).

rmode(1: achieve_goal(+Person, #)).
rmode(1: achieve_goal(+Person, -Bool)).

% Integer = {0,1}
rmode(1: severity_harm(+Person, #)).
rmode(1: severity_harm(+Person, -Integer)).

rmode(1: benefit_victim(+Person, #)).
rmode(1: benefit_victim(+Person, -Integer)).

rmode(1: careful(+Person, #)).
rmode(1: careful(+Person, -Bool)).

rmode(1: benefit_protagonist(+Person, #)).
rmode(1: benefit_protagonist(+Person, -Bool)).

rmode(1: control_perpetrator(+Person, #)).
rmode(1: control_perpetrator(+Person, -Bool)).

rmode(1: external_cause(+Person, #)).
rmode(1: external_cause(+Person, -Bool)).

rmode(1: foresee_intervention(+Person, #)).
rmode(1: foresee_intervention(+Person, -Bool)).

rmode(1: goal_achieveable_less_harmful(+Person, #)).
rmode(1: goal_achieveable_less_harmful(+Person, -Bool)).

rmode(1: goal_outweigh_harm(+Person, #)).
rmode(1: goal_outweigh_harm(+Person, -Bool)).

rmode(1: harm_caused_as_planned(+Person, #)).
rmode(1: harm_caused_as_planned(+Person, -Bool)).

rmode(1: monitor(+Person, #)).
rmode(1: monitor(+Person, -Bool)).

rmode(1: outrank_perpetrator(+Person, #)).
rmode(1: outrank_perpetrator(+Person, -Bool)).

rmode(1: someone_else_cause_harm(+Person, #)).
rmode(1: someone_else_cause_harm(+Person, -Bool)).

rmode(1: plan_include_harm(+Person, #)).
rmode(1: plan_include_harm(+Person, -Bool)).

rmode(1: plan_known(+Person, #)).
rmode(1: plan_known(+Person, -Bool)).

rmode(1: produce_harm(+Person, #)).
rmode(1: produce_harm(+Person, -Bool)).

rmode(1: sufficient_for_harm(+Person, #)).
rmode(1: sufficient_for_harm(+Person, -Bool)).





typed_language(yes).
type(necessary_for_harm(person, bool)).
type(mental_state(person, mentalState)).
type(external_force(person, bool)).
type(foreseeability(person, level)).
type(intervening_contribution(person, bool)).
type(achieve_goal(person, bool)).
type(severity_harm(person, integer)).
type(benefit_victim(person, integer)).
type(careful(person, bool)).
type(benefit_protagonist(person, bool)).
type(control_perpetrator(person, bool)).
type(external_cause(person, bool)).
type(foresee_intervention(person, bool)).
type(goal_achieveable_less_harmful(person, bool)).
type(goal_outweigh_harm(person, bool)).
type(harm_caused_as_planned(person, bool)).
type(monitor(person, bool)).
type(outrank_perpetrator(person, bool)).
type(someone_else_cause_harm(person, bool)).
type(plan_include_harm(person, bool)).
type(plan_known(person, bool)).
type(produce_harm(person, bool)).
type(sufficient_for_harm(person, bool)).






